<!DOCTYPE html>
<html>
<head xmlns:th="http://www.thymeleaf.org">
    <meta charset="utf-8">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../../static/css/site.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/css/login.css"/>
    <style>
        body>.left{
            width: 300px;
        }
        body>.left img{
            width: 300px;
        }
        .error{
            color: red;
        }
    </style>
</head>
<body>
<div class="left">
    <img src="../../static/img/login_bg.jpg" />
</div>
<div class="right">

    <form class="form" method="post" th:action="@{/user/addr/updateAddr}" >
        <h2><a class="active" href="login.html" th:href="@{/user/addr/updateAddr}">修改地址</a></h2>
        <input type="hidden" name="id" th:value="${addr.id}" />
        <input type="text" name="contact" th:value="${addr.contact}" placeholder="联系人"/>
        <input type="text" name="phone" th:value="${addr.phone}" placeholder="手机"/>
        <input type="text" name="province" th:value="${addr.province}" placeholder="省"/>
        <input type="text" name="city" th:value="${addr.city}" placeholder="市"/>
        <input type="text" name="county" th:value="${addr.county}" placeholder="县"/>
        <input type="text" name="town" th:value="${addr.town}" placeholder="镇"/>
        <input type="text" name="detail" th:value="${addr.detail}" placeholder="详细地址"/>
        <div class="error" th:text="${errMsg}"></div>
        <input type="submit" value="修改" />
    </form>

</div>
</body>
</html>
